<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<html>
<head>
<meta charset="UTF-8">
<title>下载选择的文件</title>
<!-- <script type="text/javascript">
const inputElement = document.getElementById("myFileInput");
inputElement.addEventListener("change", handleFiles, false);

function handleFiles(event) {
	  const fileList = event.target.files;
	  console.log(fileList[0].name); // 输出文件名
	  console.log(fileList[0].size); // 输出文件大小，单位为字节
	  console.log(fileList[0].type); // 输出文件类型
	}

</script> -->
</head>

<body>
<center>
<form action="downloadOtherFileServlet" method="post" enctype="multipart/form-data" name="form1">
    选择你要下载的文件：
    <input type="file" name="file" />
    <input type="submit" name="submit" id="submit" value="下载"/>
    <br>${message}
</form> 
<p><a href="${ctx}">返回主页</a></p>
</center>
</body>
</html>